<?php
/**
 *  admin base class
 *  author : trungnq
 *  create date 05-17-2012
 * */
class Backend extends CI_Controller{
    protected $data=array();
    function __construct(){
        parent::__construct();
        $this->load->helper("secure");
        if(!checkAdminLogin()) redirect(base_url()."index.php/security/adminLogin");
        $this->data["page_title"]="Wii admin";
        $this->data["view"]="admin_user/index";
    }
    function render_view()
    {
        $this->load->view("admin_template",$this->data);
    }
}
?>